package com.easpeed.elevator.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class BootReceiver extends BroadcastReceiver {

    //android.intent.action.BOOT_COMPLETED 是已开机广播对应的字符串
    static final String ACTION = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(ACTION)) {         //判断收到的广播是否是系统已启动的广播
//            Intent newIntent = new Intent(context, LauncherActivity.class);
//            newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//            context.startActivity(newIntent);
        }
    }


}
